package com.aaa.dao.impl;

import com.aaa.dao.BaseDao;
import com.aaa.dao.UnitDao;
import com.aaa.entity.Unit;

import java.util.List;

public class UnitDaoImpl implements UnitDao {
    BaseDao baseDao = BaseDao.getInstance();

    @Override
    public List<Unit> getUnitList() {
        String sql = "select * from unit where status!=0";
        List<Unit> unitList = baseDao.query(sql,null,Unit.class);
        return unitList;
    }
}
